"""
要求 图像周围包裹一圈边框
"""
import cv2
import mediapipe as mp
import numpy as np
path = './111.png'
wdnm = './222.png'

img = cv2.imread(path)
XXX = cv2.imread(wdnm)
XXX = cv2.resize(XXX, (50, 50))
img = cv2.resize(img, (550, 550))
# print(img.shape)
# 边框
img[:10, :, :] = (180, 180, 180)
img[540:, :,] = (180, 180, 180)
img[:, :10, :] = (180, 180, 180)
img[:, 540:, :] = (180, 180, 180)

img[250:300, 250:300, :] = XXX


cv2.imshow('img', img)
key = cv2.waitKey(0)
if key == ord(" "):
    cv2.destroyAllWindows()
